<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>修改用户</title>
    <link th:href="@{/css/manageadmin.css}" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="place">
    <span>位置：</span>
    <ul class="placeul">
        <li><a th:href="@{/manage}">首页</a></li>
        <li><a href="#">修改用户</a></li>
    </ul>
</div>
<div class="formbody">
    <div class="usual">
        <form name="frm" th:action="@{/update}" method="post" th:object="${user}">
            <div class="tabson">
                <ul class="forminfo">
                    <li>
<!--                        id值传递-->

                        <input name="userId" type="hidden" th:field="*{userId}" />
                        <label>登录名称<b>*</b></label>
                        <input name="userLogname" type="text" class="dfinput"
                               style="width:518px;" th:field="*{userLogname}" required />
                        <span class="error" th:if="${#fields.hasErrors('userLogname')}"
                              th:errors="*{userLogname}"></span>
                    </li>
                    <li>
                        <label>登录密码<b>*</b></label>
                        <input name="userPwd" type="password" class="dfinput"
                               style="width:518px;" th:field="*{userPwd}" required />
                        <span class="error" th:if="${#fields.hasErrors('userPwd')}"
                              th:errors="*{userPwd}"></span>
                    </li>
                    <li>
                        <label>真实姓名<b>*</b></label>
                        <input name="userRealname" type="text" class="dfinput"
                               style="width:518px;" th:field="*{userRealname}" required />
                        <span class="error" th:if="${#fields.hasErrors('userRealname')}"
                              th:errors="*{userRealname}"></span>
                    </li>
                    <li>
                        <label>邮箱<b>*</b></label>
                        <input name="userEmail" type="email" class="dfinput"
                               style="width:518px;" th:field="*{userEmail}" required />
                        <span class="error" th:if="${#fields.hasErrors('userEmail')}"
                              th:errors="*{userEmail}"></span>
                    </li>
                    <li>
                        <label>用户角色<b>*</b></label>
                        <div class="vocation">
                            <select name="userRole" class="select3" th:field="*{userRole}">
                                <option value="3">普通用户</option>
                                <option value="2">企业管理员</option>
                                <option value="1">系统管理员</option>
                            </select>
                        </div>
                    </li>
                    <li>
                        <label>用户状态<b>*</b></label>
                        <input name="userState" type="radio" th:field="*{userState}" value="1" checked="checked"/>启用
                        <input name="userState" type="radio" th:field="*{userState}" value="0"/>禁用
                    </li>
                    <li>
                        <label>&nbsp;</label>
                        <input type="submit" class="btn" value="修改"/>
                    </li>
                </ul>
            </div>
        </form>
    </div>
</div>
</body>
</html>